import request from '@/utils/request'

// 新增项目
export function addProject(data) {
    return request({
        url: '/project/add',
        method: 'post',
        data: data
    })
}

// 查询项目列表
export function listProject(query) {
    return request({
        url: '/project/list',
        method: 'get',
        params: query
    })
}

// 查询项目列表
export function outListProject(query) {
    return request({
        url: '/out/project/list',
        method: 'get',
        params: query
    })
}

// 查询项目详情
export function outDetailProject(query) {
    return request({
        url: '/out/project/detail',
        method: 'get',
        params: query
    })
}

// 项目详情
export function detailProject(query) {
    return request({
        url: '/project/detail',
        method: 'get',
        params: query
    })
}
// 更新项目
export function updateProject(data) {
    return request({
        url: '/project/update',
        method: 'post',
        data: data
    })
}

// 删除项目
export function delProject(projectIds) {
    return request({
        url: '/project/' + projectIds,
        method: 'delete'
    })
}
